package com.java47;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * spring项目的主启动类
 *
 * @authoru java1214
 * @create 2023-01-04 10:13
 */
//@SpringBootApplication自动完成了springboot的一些基础配置
@SpringBootApplication
/*
 * @ComponentScan:组件扫描
 * @SpringBootConfiguration:提供了springboot项目的基础配置
 * @EnableAutoConfiguration:开启springboot的自动配置
 *
 */
@MapperScan(value = {"com.java47.mapper"})
//@MapperScan(value = {"com.java47.mapper"})扫描mapper层接口
public class SpringBoot01ProjectApplication {
    public static void main(String[] args) {
        //main方法中可以直接内置一个tomcat
        //SpringApplication.run运行一个springboot项目
        SpringApplication.run(SpringBoot01ProjectApplication.class, args);
    }
}
